import Vue from "vue";
import Vuex from "vuex";
//1.引入user的js
import user from "./user.js";
import cart from "./cart.js"
Vue.use(Vuex);
const actions = {};
const mutations = {};
const state = {};
const getters = {};
export default new Vuex.Store({
  actions,
  mutations,
  state,
  getters,
  //2.放到模块化里面去
  modules: {
    user,
    cart,
  },
});
